package com.sh.data.engine.application.model.dto.api;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema
public class DataApiSaveFieldResponse {

    /**
     * 字段名
     */
    @Schema(description = "字段名")
    private String fieldName;

    /**
     * 字段类型（从db中读取到的）
     */
    @Schema(description = "字段类型")
    private String fieldType;

    /**
     * 字段类型（对应的java.sql.Types的SQL类型）
     */
    @Schema(description = "字段类型")
    private int dataType;

    /**
     * 字段长度
     */
    @Schema(description = "字段长度")
    private Integer columnSize;

    /**
     * 字段小数位长度
     */
    @Schema(description = "字段小数位长度")
    private Integer decimalDigits;

    /**
     * 是否是分区字段
     */
    @Schema(description = "是否是分区字段")
    private boolean isPartition;

    @Schema(description = "参数字段类型")
    private String paramDataType;

    /**
     * 字段是否是主键
     */
    @Schema(description = "字段是否是主键")
    private boolean isPk;

    /**
     * 字段可否为空
     */
    @Schema(description = "字段可否为空")
    private boolean isNullable;

    /**
     * 字段备注
     */
    @Schema(description = "字段备注")
    private String comment;

    private String paramDesc;

    private String bindColumnName;

}
